package com.lyncs.ods.modules.setting.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 短链信息表
 * </p>
 *
 * @author alex
 * @since 2022-05-31
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("short_link_info")
@ApiModel(value = "ShortLinkInfo对象", description = "短链信息表")
public class ShortLinkInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("类型：1.order;2.deliver;3.settlement")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("类型关联ID")
    @TableField("ref_id")
    private Long refId;

    @ApiModelProperty("key")
    @TableField("`key`")
    private String key;

    @ApiModelProperty("deeplink")
    @TableField("deeplink")
    private String deeplink;

    @ApiModelProperty("完整url")
    @TableField("url")
    private String url;

    @ApiModelProperty("salt")
    @TableField("salt")
    private String salt;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
